package controller

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

// Sets routes for accountGroup resource.
func SetPaymentRoutes(routerGroup *gin.RouterGroup) {
	controller := NewtPaymentController()

	routerGroup.GET("/", controller.Index)
}

type PaymentController interface {
	Index(ctx *gin.Context)
}

func NewtPaymentController() PaymentController {
	return paymentController{}
}

// Matches /Index of http get action.
func (accountGroupController paymentController) Index(ctx *gin.Context) {
	ctx.JSON(http.StatusOK, map[string]interface{}{
		"name": "payment-service",
	})
}

// Container of AccountGroupController functions.
type paymentController struct{}
